home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 July / CHIP 2006-07.2.iso / program / web_gelistirme / easyphp1-7_setup.exe / {app} / phpmyadmin / config.inc.php < prev    next >
Encoding:
PHP Script  |  2003-09-10  |  32.6 KB  |  728 lines

  1. <?php
  2. /* $Id: config.inc.php,v 1.198 2003/08/05 14:08:22 nijel Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5. /**
  6.  * phpMyAdmin Configuration File
  7.  *
  8.  * All directives are explained in Documentation.html
  9.  */
  10.  
  11.  
  12. /**
  13.  * Sets the php error reporting - Please do not change this line!
  14.  */
  15. if (!isset($old_error_reporting)) {
  16.     error_reporting(E_ALL);
  17.     @ini_set('display_errors', '1');
  18. }
  19.  
  20.  
  21. /**
  22.  * Your phpMyAdmin url
  23.  *
  24.  * Complete the variable below with the full url ie
  25.  *    http://www.your_web.net/path_to_your_phpMyAdmin_directory/
  26.  *
  27.  * It must contain characters that are valid for a URL, and the path is
  28.  * case sensitive on some Web servers, for example Unix-based servers.
  29.  *
  30.  * In most cases you can leave this variable empty, as the correct value
  31.  * will be detected automatically. However, we recommend that you do
  32.  * test to see that the auto-detection code works in your system. A good
  33.  * test is to browse a table, then edit a row and save it.  There will be
  34.  * an error message if phpMyAdmin cannot auto-detect the correct value.
  35.  *
  36.  * If the auto-detection code does work properly, you can set to TRUE the
  37.  * $cfg['PmaAbsoluteUri_DisableWarning'] variable below.
  38.  */
  39. $cfg['PmaAbsoluteUri'] = '';
  40.  
  41.  
  42. /**
  43.  * Disable the default warning about $cfg['PmaAbsoluteUri'] not being set
  44.  * You should use this if and ONLY if the PmaAbsoluteUri auto-detection
  45.  * works perfectly.
  46.  */
  47. $cfg['PmaAbsoluteUri_DisableWarning'] = TRUE;
  48.  
  49. /**
  50.  * Disable the default warning that is displayed on the DB Details Structure page if
  51.  * any of the required Tables for the relationfeatures could not be found
  52.  */
  53. $cfg['PmaNoRelation_DisableWarning']  = FALSE;
  54.  
  55. /**
  56.  * The 'cookie' auth_type uses blowfish algorithm to encrypt the password.
  57.  * If at least one server configuration uses 'cookie' auth_type,
  58.  * enter here a passphrase that will be used by blowfish.
  59.  */
  60. $cfg['blowfish_secret'] = '';
  61.  
  62. /**
  63.  * Server(s) configuration
  64.  */
  65. $i = 0;
  66. // The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use $cfg['Servers'][0].
  67. // You can disable a server config entry by setting host to ''.
  68. $i++;
  69. $cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address
  70. $cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
  71. $cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
  72. $cfg['Servers'][$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
  73. $cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
  74.                                                     // (requires PHP >= 4.3.0)
  75. $cfg['Servers'][$i]['controluser']   = '';          // MySQL control user settings
  76.                                                     // (this user must have read-only
  77. $cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
  78.                                                     // and "mysql/db" tables)
  79. $cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
  80. $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
  81. $cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
  82.                                                     // with 'config' auth_type)
  83. $cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
  84.                                                     // this db is displayed
  85.                                                     // at left frame
  86.                                                     // It may also be an array
  87.                                                     // of db-names
  88. $cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname
  89.  
  90. $cfg['Servers'][$i]['pmadb']         = '';          // Database used for Relation, Bookmark and PDF Features
  91.                                                     // (see scripts/create_tables.sql)
  92.                                                     //   - leave blank for no support
  93.                                                     //     DEFAULT: 'phpmyadmin'
  94. $cfg['Servers'][$i]['bookmarktable'] = '';          // Bookmark table
  95.                                                     //   - leave blank for no bookmark support
  96.                                                     //     DEFAULT: 'PMA_bookmark'
  97. $cfg['Servers'][$i]['relation']      = '';          // table to describe the relation between links (see doc)
  98.                                                     //   - leave blank for no relation-links support
  99.                                                     //     DEFAULT: 'PMA_relation'
  100. $cfg['Servers'][$i]['table_info']    = '';          // table to describe the display fields
  101.                                                     //   - leave blank for no display fields support
  102.                                                     //     DEFAULT: 'PMA_table_info'
  103. $cfg['Servers'][$i]['table_coords']  = '';          // table to describe the tables position for the PDF schema
  104.                                                     //   - leave blank for no PDF schema support
  105.                                                     //     DEFAULT: 'PMA_table_coords'
  106. $cfg['Servers'][$i]['pdf_pages']     = '';          // table to describe pages of relationpdf
  107.                                                     //   - leave blank if you don't want to use this
  108.                                                     //     DEFAULT: 'PMA_pdf_pages'
  109. $cfg['Servers'][$i]['column_info']   = '';          // table to store column information
  110.                                                     //   - leave blank for no column comments/mime types
  111.                                                     //     DEFAULT: 'PMA_column_info'
  112. $cfg['Servers'][$i]['history']       = '';          // table to store SQL history
  113.                                                     //   - leave blank for no SQL query history
  114.                                                     //     DEFAULT: 'PMA_history'
  115. $cfg['Servers'][$i]['verbose_check'] = TRUE;        // set to FALSE if you know that your PMA_* tables
  116.                                                     // are up to date. This prevents compatibility
  117.                                                     // checks and thereby increases performance.
  118. $cfg['Servers'][$i]['AllowDeny']['order']           // Host authentication order, leave blank to not use
  119.                                      = '';
  120. $cfg['Servers'][$i]['AllowDeny']['rules']           // Host authentication rules, leave blank for defaults
  121.                                      = array();
  122.  
  123.  
  124. $i++;
  125. $cfg['Servers'][$i]['host']            = '';
  126. $cfg['Servers'][$i]['port']            = '';
  127. $cfg['Servers'][$i]['socket']          = '';
  128. $cfg['Servers'][$i]['connect_type']    = 'tcp';
  129. $cfg['Servers'][$i]['compress']        = FALSE;
  130. $cfg['Servers'][$i]['controluser']     = '';
  131. $cfg['Servers'][$i]['controlpass']     = '';
  132. $cfg['Servers'][$i]['auth_type']       = 'config';
  133. $cfg['Servers'][$i]['user']            = 'root';
  134. $cfg['Servers'][$i]['password']        = '';
  135. $cfg['Servers'][$i]['only_db']         = '';
  136. $cfg['Servers'][$i]['verbose']         = '';
  137. $cfg['Servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see scripts/create_tables.sql
  138. $cfg['Servers'][$i]['bookmarktable']   = ''; // 'PMA_bookmark'
  139. $cfg['Servers'][$i]['relation']        = ''; // 'PMA_relation'
  140. $cfg['Servers'][$i]['table_info']      = ''; // 'PMA_table_info'
  141. $cfg['Servers'][$i]['table_coords']    = ''; // 'PMA_table_coords'
  142. $cfg['Servers'][$i]['pdf_pages']       = ''; // 'PMA_pdf_pages'
  143. $cfg['Servers'][$i]['column_info']     = ''; // 'PMA_column_info'
  144. $cfg['Servers'][$i]['history']         = ''; // 'PMA_history'
  145. $cfg['Servers'][$i]['verbose_check']   = TRUE;
  146. $cfg['Servers'][$i]['AllowDeny']['order']
  147.                                        = '';
  148. $cfg['Servers'][$i]['AllowDeny']['rules']
  149.                                        = array();
  150.  
  151. $i++;
  152. $cfg['Servers'][$i]['host']            = '';
  153. $cfg['Servers'][$i]['port']            = '';
  154. $cfg['Servers'][$i]['socket']          = '';
  155. $cfg['Servers'][$i]['connect_type']    = 'tcp';
  156. $cfg['Servers'][$i]['compress']        = FALSE;
  157. $cfg['Servers'][$i]['controluser']     = '';
  158. $cfg['Servers'][$i]['controlpass']     = '';
  159. $cfg['Servers'][$i]['auth_type']       = 'config';
  160. $cfg['Servers'][$i]['user']            = 'root';
  161. $cfg['Servers'][$i]['password']        = '';
  162. $cfg['Servers'][$i]['only_db']         = '';
  163. $cfg['Servers'][$i]['verbose']         = '';
  164. $cfg['Servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see scripts/create_tables.sql
  165. $cfg['Servers'][$i]['bookmarktable']   = ''; // 'PMA_bookmark'
  166. $cfg['Servers'][$i]['relation']        = ''; // 'PMA_relation'
  167. $cfg['Servers'][$i]['table_info']      = ''; // 'PMA_table_info'
  168. $cfg['Servers'][$i]['table_coords']    = ''; // 'PMA_table_coords'
  169. $cfg['Servers'][$i]['pdf_pages']       = ''; // 'PMA_pdf_pages'
  170. $cfg['Servers'][$i]['column_info']     = ''; // 'PMA_column_info'
  171. $cfg['Servers'][$i]['history']         = ''; // 'PMA_history'
  172. $cfg['Servers'][$i]['verbose_check']   = TRUE;
  173. $cfg['Servers'][$i]['AllowDeny']['order']
  174.                                        = '';
  175. $cfg['Servers'][$i]['AllowDeny']['rules']
  176.                                        = array();
  177.  
  178. // If you have more than one server configured, you can set $cfg['ServerDefault']
  179. // to any one of them to autoconnect to that server when phpMyAdmin is started,
  180. // or set it to 0 to be given a list of servers without logging in
  181. // If you have only one server configured, $cfg['ServerDefault'] *MUST* be
  182. // set to that server.
  183. $cfg['ServerDefault'] = 1;              // Default server (0 = no default server)
  184. $cfg['Server']        = '';
  185. unset($cfg['Servers'][0]);
  186.  
  187.  
  188. /**
  189.  * Other core phpMyAdmin settings
  190.  */
  191. $cfg['OBGzip']                  = 'auto'; // use GZIP output buffering if possible (TRUE|FALSE|'auto')
  192. $cfg['PersistentConnections']   = FALSE;  // use persistent connections to MySQL database
  193. $cfg['ExecTimeLimit']           = 300;    // maximum execution time in seconds (0 for no limit)
  194. $cfg['SkipLockedTables']        = FALSE;  // mark used tables, make possible to show
  195.                                           // locked tables (since MySQL 3.23.30)
  196. $cfg['ShowSQL']                 = TRUE;   // show SQL queries as run
  197. $cfg['AllowUserDropDatabase']   = FALSE;  // show a 'Drop database' link to normal users
  198. $cfg['Confirm']                 = TRUE;   // confirm 'DROP TABLE' & 'DROP DATABASE'
  199. $cfg['LoginCookieRecall']       = TRUE;   // recall previous login in cookie auth. mode or not
  200. $cfg['UseDbSearch']             = TRUE;   // whether to enable the "database search" feature
  201.                                           // or not
  202. $cfg['IgnoreMultiSubmitErrors'] = FALSE;  // if set to true, PMA continues computing multiple-statement queries
  203.                                           // even if one of the queries failed
  204. $cfg['VerboseMultiSubmit']      = TRUE;   // if set to true, PMA will show the affected rows of EACH statement on
  205.                                           // multiple-statement queries. See the read_dump.php file for hardcoded
  206.                                           // defaults on how many queries a statement may contain!
  207.  
  208. // Left frame setup
  209. $cfg['LeftFrameLight']        = TRUE;   // use a select-based menu and display only the
  210.                                         // current tables in the left frame.
  211. $cfg['LeftFrameTableSeparator']= '__';  // Which string will be used to generate table prefixes
  212.                                         // to split tables into multiple categories
  213. $cfg['LeftFrameTableLevel']   = '1';    // How many sublevels should be displayed when splitting
  214.                                         // up tables by the above Separator
  215. $cfg['ShowTooltip']           = TRUE;   // display table comment as tooltip in left frame
  216. $cfg['ShowTooltipAliasDB']    = FALSE;  // if ShowToolTip is enabled, this defines that table/db comments
  217. $cfg['ShowTooltipAliasTB']    = FALSE;  // are shown (in the left menu and db_details_structure) instead of
  218.                                         // table/db names
  219.  
  220. $cfg['LeftDisplayLogo']       = TRUE;   // display logo at top of left frame
  221. $cfg['LeftDisplayServers']    = FALSE;  // display server choice at top of left frame
  222.  
  223. // In the main frame, at startup...
  224. $cfg['ShowStats']             = TRUE;   // allow to display statistics and space usage in
  225.                                         // the pages about database details and table
  226.                                         // properties
  227. $cfg['ShowMysqlInfo']         = FALSE;  // whether to display the "MySQL runtime
  228. $cfg['ShowMysqlVars']         = FALSE;  // information", "MySQL system variables", "PHP
  229. $cfg['ShowPhpInfo']           = FALSE;  // information" and "change password" links for
  230. $cfg['ShowChgPassword']       = FALSE;  // simple users or not
  231. $cfg['SuggestDBName']         = TRUE;   // suggest a new DB name if possible (false = keep empty)
  232.  
  233. // In browse mode...
  234. $cfg['ShowBlob']              = FALSE;  // display blob field contents
  235. $cfg['NavigationBarIconic']   = TRUE;   // do not display text inside navigation bar buttons
  236. $cfg['ShowAll']               = FALSE;  // allows to display all the rows
  237. $cfg['MaxRows']               = 30;     // maximum number of rows to display
  238. $cfg['Order']                 = 'ASC';  // default for 'ORDER BY' clause (valid
  239.                                         // values are 'ASC', 'DESC' or 'SMART' -ie
  240.                                         // descending order for fields of type
  241.                                         // TIME, DATE, DATETIME & TIMESTAMP,
  242.                                         // ascending order else-)
  243.  
  244. // In edit mode...
  245. $cfg['ProtectBinary']         = 'blob'; // disallow editing of binary fields
  246.                                         // valid values are:
  247.                                         //   FALSE  allow editing
  248.                                         //   'blob' allow editing except for BLOB fields
  249.                                         //   'all'  disallow editing
  250. $cfg['ShowFunctionFields']    = TRUE;   // Display the function fields in edit/insert mode
  251. $cfg['CharEditing']           = 'input';
  252.                                         // Which editor should be used for CHAR/VARCHAR fields:
  253.                                         //  input - allows limiting of input length
  254.                                         //  textarea - allows newlines in fields
  255.  
  256. // For the export features...
  257. $cfg['ZipDump']               = TRUE;   // Allow the use of zip/gzip/bzip
  258. $cfg['GZipDump']              = TRUE;   // compression for
  259. $cfg['BZipDump']              = TRUE;   // dump files
  260.  
  261. // Tabs display settings
  262. $cfg['LightTabs']             = FALSE;  // use graphically less intense menu tabs
  263. $cfg['PropertiesIconic']      = TRUE;   // Use icons instead of text for the table display of a database (TRUE|FALSE|'both')
  264. $cfg['PropertiesNumColumns']  = 1;      // How many columns should be used for table display of a database?
  265.                                         // (a value larger than 1 results in some information being hidden)
  266.  
  267. $cfg['DefaultTabServer']      = 'main.php';
  268.                                    // Possible values:
  269.                                    // 'main.php' = the welcome page
  270.                                    // (recommended for multiuser setups)
  271.                                    // 'server_databases.php' = list of databases
  272.                                    // 'server_status.php' = runtime information
  273.                                    // 'server_variables.php' = MySQL server variables
  274.                                    // 'server_privileges.php' = user management
  275.                                    // 'server_processlist.php' = process list
  276. $cfg['DefaultTabDatabase']    = 'db_details_structure.php';
  277.                                    // Possible values:
  278.                                    // 'db_details_structure.php' = tables list
  279.                                    // 'db_details.php' = sql form
  280.                                    // 'db_search.php' = search query
  281. $cfg['DefaultTabTable']       = 'tbl_properties_structure.php';
  282.                                    // Possible values:
  283.                                    // 'tbl_properties_structure.php' = fields list
  284.                                    // 'tbl_properties.php' = sql form
  285.                                    // 'tbl_select.php = select page
  286.                                    // 'tbl_change.php = insert row page
  287.  
  288. /**
  289.  * Export defaults
  290.  */
  291.  
  292. $cfg['Export']['format']                    = 'sql';  // sql/latex/excel/csv/xml
  293. $cfg['Export']['compression']               = 'none'; // none/zip/gzip/bzip2
  294.  
  295. $cfg['Export']['asfile']                    = FALSE;
  296. $cfg['Export']['onserver']                  = FALSE;
  297. $cfg['Export']['onserver_overwrite']        = FALSE;
  298. $cfg['Export']['remember_file_template']    = TRUE;
  299.  
  300. $cfg['Export']['csv_columns']               = FALSE;
  301. $cfg['Export']['csv_null']                  = 'NULL';
  302. $cfg['Export']['csv_separator']             = ';';
  303. $cfg['Export']['csv_enclosed']              = '"';
  304. $cfg['Export']['csv_escaped']               = '\\';
  305. $cfg['Export']['csv_terminated']            = 'AUTO';
  306. $cfg['Export']['excel_columns']             = FALSE;
  307. $cfg['Export']['excel_null']                = 'NULL';
  308.  
  309. $cfg['Export']['latex_structure']           = TRUE;
  310. $cfg['Export']['latex_data']                = TRUE;
  311. $cfg['Export']['latex_columns']             = TRUE;
  312. $cfg['Export']['latex_relation']            = TRUE;
  313. $cfg['Export']['latex_comments']            = TRUE;
  314. $cfg['Export']['latex_mime']                = TRUE;
  315. $cfg['Export']['latex_null']                = '\textit{NULL}';
  316.  
  317. $cfg['Export']['sql_structure']             = TRUE;
  318. $cfg['Export']['sql_data']                  = TRUE;
  319. $cfg['Export']['sql_drop_database']         = FALSE;
  320. $cfg['Export']['sql_drop_table']            = FALSE;
  321. $cfg['Export']['sql_auto_increment']        = TRUE;
  322. $cfg['Export']['sql_backquotes']            = TRUE;
  323. $cfg['Export']['sql_relation']              = FALSE;
  324. $cfg['Export']['sql_columns']               = FALSE;
  325. $cfg['Export']['sql_extended']              = FALSE;
  326. $cfg['Export']['sql_comments']              = FALSE;
  327. $cfg['Export']['sql_mime']                  = FALSE;
  328.  
  329. /**
  330.  * Link to the official MySQL documentation.
  331.  * Be sure to include no trailing slash on the path.
  332.  * See http://www.mysql.com/documentation/index.html for more information
  333.  * about MySQL manuals and their types.
  334.  */
  335. $cfg['MySQLManualBase'] = 'http://www.mysql.com/doc/en';
  336.  
  337. /**
  338.  * Type of MySQL documentation:
  339.  *   old        - old style used in phpMyAdmin 2.3.0 and sooner
  340.  *   searchable - "Searchable, with user comments"
  341.  *   chapters   - "HTML, one page per chapter"
  342.  *   big        - "HTML, all on one page"
  343.  *   none       - do not show documentation links
  344.  */
  345. $cfg['MySQLManualType'] = 'searchable';
  346.  
  347.  
  348. /**
  349.  * PDF options
  350.  */
  351. $cfg['PDFPageSizes']        = array('A3', 'A4', 'A5', 'letter', 'legal');
  352. $cfg['PDFDefaultPageSize']  = 'A4';
  353.  
  354.  
  355. /**
  356.  * Language and charset conversion settings
  357.  */
  358. // Default language to use, if not browser-defined or user-defined
  359. $cfg['DefaultLang'] = 'en-iso-8859-1';
  360.  
  361. // Force: always use this language - must be defined in
  362. //        libraries/select_lang.lib.php
  363. // $cfg['Lang']     = 'en-iso-8859-1';
  364.  
  365. // Default charset to use for recoding of MySQL queries, does not take
  366. // any effect when charsets recoding is switched off by
  367. // $cfg['AllowAnywhereRecoding'] or in language file
  368. // (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
  369. $cfg['DefaultCharset'] = 'iso-8859-1';
  370.  
  371. // Allow charset recoding of MySQL queries, must be also enabled in language
  372. // file to make harder using other language files than unicode.
  373. // Default value is FALSE to avoid problems on servers without the iconv
  374. // extension and where dl() is not supported
  375. $cfg['AllowAnywhereRecoding'] = FALSE;
  376.  
  377. // You can select here which functions will be used for charset conversion.
  378. // Possible values are:
  379. //      auto   - automatically use available one (first is tested iconv, then
  380. //               recode)
  381. //      iconv  - use iconv or libiconv functions
  382. //      recode - use recode_string function
  383. $cfg['RecodingEngine'] = 'auto';
  384.  
  385. // Specify some parameters for iconv used in charset conversion. See iconv
  386. // documentation for details:
  387. // http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html 
  388. $cfg['IconvExtraParams'] = '';
  389.  
  390. // Available charsets for MySQL conversion. currently contains all which could
  391. // be found in lang/* files and few more.
  392. // Charsets will be shown in same order as here listed, so if you frequently
  393. // use some of these move them to the top.
  394. $cfg['AvailableCharsets'] = array(
  395.     'iso-8859-1',
  396.     'iso-8859-2',
  397.     'iso-8859-3',
  398.     'iso-8859-4',
  399.     'iso-8859-5',
  400.     'iso-8859-6',
  401.     'iso-8859-7',
  402.     'iso-8859-8',
  403.     'iso-8859-9',
  404.     'iso-8859-10',
  405.     'iso-8859-11',
  406.     'iso-8859-12',
  407.     'iso-8859-13',
  408.     'iso-8859-14',
  409.     'iso-8859-15',
  410.     'windows-1250',
  411.     'windows-1251',
  412.     'windows-1252',
  413.     'windows-1257',
  414.     'koi8-r',
  415.     'big5',
  416.     'gb2312',
  417.     'utf-8',
  418.     'utf-7',
  419.     'x-user-defined',
  420.     'euc-jp',
  421.     'ks_c_5601-1987',
  422.     'tis-620',
  423.     'SHIFT_JIS'
  424. );
  425.  
  426. // Loads language file
  427. require('./libraries/select_lang.lib.php');
  428.  
  429.  
  430. /**
  431.  * Customization & design
  432.  */
  433. $cfg['LeftWidth']           = 150;          // left frame width
  434. $cfg['LeftBgColor']         = '#D0DCE0';    // background color for the left frame
  435. $cfg['RightBgColor']        = '#F5F5F5';    // background color for the right frame
  436. $cfg['RightBgImage']        = '';           // path to a background image for the right frame
  437.                                             // (leave blank for no background image)
  438. $cfg['LeftPointerColor']    = '#CCFFCC';    // color of the pointer in left frame
  439.                                             // (blank for no pointer)
  440. $cfg['Border']              = 0;            // border width on tables
  441. $cfg['ThBgcolor']           = '#D3DCE3';    // table header row colour
  442. $cfg['BgcolorOne']          = '#CCCCCC';    // table data row colour
  443. $cfg['BgcolorTwo']          = '#DDDDDD';    // table data row colour, alternate
  444. $cfg['BrowsePointerColor']  = '#CCFFCC';    // color of the pointer in browse mode
  445.                                             // (blank for no pointer)
  446. $cfg['BrowseMarkerColor']   = '#FFCC99';    // color of the marker (visually marks row
  447.                                             // by clicking on it) in browse mode
  448.                                             // (blank for no marker)
  449. $cfg['TextareaCols']        = 40;           // textarea size (columns) in edit mode
  450.                                             // (this value will be emphasized (*2) for sql
  451.                                             // query textareas and (*1.25) for query window)
  452. $cfg['TextareaRows']        = 7;            // textarea size (rows) in edit mode
  453. $cfg['LongtextDoubleTextarea'] = TRUE;      // double size of textarea size for longtext fields
  454. $cfg['TextareaAutoSelect']  = TRUE;         // autoselect when clicking in the textarea of the querybox
  455. $cfg['CharTextareaCols']    = 40;           // textarea size (columns) for CHAR/VARCHAR
  456. $cfg['CharTextareaRows']    = 2;            // textarea size (rows) for CHAR/VARCHAR
  457. $cfg['CtrlArrowsMoving']    = TRUE;         // Enable Ctrl+Arrows moving between fields when editing?
  458. $cfg['LimitChars']          = 50;           // Max field data length in browse mode for all non-numeric fields
  459. $cfg['ModifyDeleteAtLeft']  = TRUE;         // show edit/delete links on left side of browse
  460.                                             // (or at the top with vertical browse)
  461. $cfg['ModifyDeleteAtRight'] = FALSE;        // show edit/delete links on right side of browse
  462.                                             // (or at the bottom with vertical browse)
  463. $cfg['DefaultDisplay']      = 'horizontal'; // default display direction
  464.                                             // (horizontal|vertical|horizontalflipped)
  465. $cfg['DefaultPropDisplay']  = 'horizontal'; // default display direction for altering/
  466.                                             // creating columns (tbl_properties)
  467.                                             // (horizontal|vertical)
  468.  
  469. $cfg['HeaderFlipType']      = 'css';        // table-header rotation via faking or css? (css|fake)
  470.                                             // NOTE: CSS only works in IE browsers!
  471. $cfg['ShowBrowseComments']  = TRUE;         // shows stored relation-comments in 'browse' mode.
  472. $cfg['ShowPropertyComments']= TRUE;         // shows stored relation-comments in 'table property' mode.
  473. $cfg['RepeatCells']         = 100;          // repeat header names every X cells? (0 = deactivate)
  474.  
  475. $cfg['QueryFrame']          = TRUE;         // displays a new frame where a link to a querybox is always displayed.
  476. $cfg['QueryFrameJS']        = TRUE;         // whether to use JavaScript functions for opening a new window for SQL commands.
  477.                                             // if set to 'false', the target of the querybox is always the right frame.
  478. $cfg['QueryFrameDebug']     = FALSE;        // display JS debugging link (DEVELOPERS only)
  479. $cfg['QueryWindowWidth']    = 550;          // Width of Query window
  480. $cfg['QueryWindowHeight']   = 310;          // Height of Query window
  481. $cfg['QueryHistoryDB']      = FALSE;         // Set to TRUE if you want DB-based query history.
  482.                                             // If FALSE, this utilizes JS-routines to display
  483.                                             // query history (lost by window close)
  484. $cfg['QueryWindowDefTab']   = 'sql';        // which tab to display in the querywindow on startup
  485.                                             // (sql|files|history|full)
  486. $cfg['QueryHistoryMax']     = 25;           // When using DB-based query history, how many entries
  487.                                             // should be kept?
  488. $cfg['BrowseMIME']          = TRUE;         // Use MIME-Types (stored in column comments table) for
  489. $cfg['MaxExactCount']       = 20000;        // When approximate count < this, PMA will get exact count for
  490.                                             // table rows.
  491. $cfg['WYSIWYG-PDF']         = TRUE;         // Utilize DHTML/JS capabilities to allow WYSIWYG editing of
  492.                                             // the PDF page editor. Requires an IE6/Mozilla based browser.
  493.  
  494. /**
  495.  * SQL Query box settings
  496.  * These are the links display in all of the SQL Query boxes
  497.  */
  498. $cfg['SQLQuery']['Edit']      = TRUE;       // Edit link to change a query
  499. $cfg['SQLQuery']['Explain']   = TRUE;       // EXPLAIN on SELECT queries
  500. $cfg['SQLQuery']['ShowAsPHP'] = TRUE;       // Wrap a query in PHP
  501. $cfg['SQLQuery']['Validate']  = FALSE;      // Validate a query (see $cfg['SQLValidator'] as well)
  502.  
  503.  
  504. /**
  505.  * web-server upload directory
  506.  */
  507. $cfg['UploadDir']             = '';         // for example, './upload/'; you must end it with
  508.                                             // a slash, and you leave it empty for no upload
  509.                                             // directory
  510. $cfg['SaveDir']               = '';         // for example, './save/'; you must end it with
  511.                                             // a slash, and you leave it empty for no save
  512.                                             // directory
  513.  
  514.  
  515. /**
  516.  * Misc. settings
  517.  */
  518. $cfg['GD2Available']          = 'auto';     // Is GD >= 2 available? Set to yes/no/auto. 'auto'
  519.                                             // does autodetection, which is a bit expensive for
  520.                                             // php < 4.3.0, but it is the only safe vay how to
  521.                                             // determine GD version.
  522. /**
  523.  * SQL Parser Settings
  524.  */
  525. $cfg['SQP']['fmtType']      = 'html';       // Pretty-printing style to use on queries (html, text, none)
  526. $cfg['SQP']['fmtInd']       = '1';          // Amount to indent each level (floats ok)
  527. $cfg['SQP']['fmtIndUnit']   = 'em';         // Units for indenting each level (CSS Types - {em,px,pt})
  528. $cfg['SQP']['fmtColor']     = array(        // Syntax colouring data
  529.     'comment'            => '#808000',
  530.     'comment_mysql'      => '',
  531.     'comment_ansi'       => '',
  532.     'comment_c'          => '',
  533.     'digit'              => '',
  534.     'digit_hex'          => 'teal',
  535.     'digit_integer'      => 'teal',
  536.     'digit_float'        => 'aqua',
  537.     'punct'              => 'fuchsia',
  538.     'alpha'              => '',
  539.     'alpha_columnType'   => '#FF9900',
  540.     'alpha_columnAttrib' => '#0000FF',
  541.     'alpha_reservedWord' => '#990099',
  542.     'alpha_functionName' => '#FF0000',
  543.     'alpha_identifier'   => 'black',
  544.     'alpha_variable'     => '#800000',
  545.     'quote'              => '#008000',
  546.     'quote_double'       => '',
  547.     'quote_single'       => '',
  548.     'quote_backtick'     => ''
  549. );
  550.  
  551.  
  552. /**
  553.  * If you wish to use the SQL Validator service, you should be
  554.  * aware of the following:
  555.  * All SQL statements are stored anonymously for statistical purposes.
  556.  * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
  557.  * All rights reserved.
  558.  */
  559. $cfg['SQLValidator']['use']      = FALSE;   // Make the SQL Validator available
  560. $cfg['SQLValidator']['username'] = '';      // If you have a custom username, specify it here (defaults to anonymous)
  561. $cfg['SQLValidator']['password'] = '';      // Password for username
  562.  
  563. /**
  564.  * Developers ONLY!
  565.  * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
  566.  */
  567. $cfg['DBG']['enable'] = FALSE;              // Make the DBG stuff available
  568. $cfg['DBG']['profile']['enable'] = FALSE;   // Produce profiling results of PHP
  569. $cfg['DBG']['profile']['threshold'] = 0.5;  // Threshold of long running code to display
  570.                                             // Anything below the threshold is not displayed
  571.  
  572.  
  573. /**
  574.  * MySQL settings
  575.  */
  576. // Column types;
  577. // varchar, tinyint, text and date are listed first, based on estimated popularity
  578. $cfg['ColumnTypes'] = array(
  579.    'VARCHAR',
  580.    'TINYINT',
  581.    'TEXT',
  582.    'DATE',
  583.    'SMALLINT',
  584.    'MEDIUMINT',
  585.    'INT',
  586.    'BIGINT',
  587.    'FLOAT',
  588.    'DOUBLE',
  589.    'DECIMAL',
  590.    'DATETIME',
  591.    'TIMESTAMP',
  592.    'TIME',
  593.    'YEAR',
  594.    'CHAR',
  595.    'TINYBLOB',
  596.    'TINYTEXT',
  597.    'BLOB',
  598.    'MEDIUMBLOB',
  599.    'MEDIUMTEXT',
  600.    'LONGBLOB',
  601.    'LONGTEXT',
  602.    'ENUM',
  603.    'SET'
  604. );
  605.  
  606. // Atributes
  607. $cfg['AttributeTypes'] = array(
  608.    '',
  609.    'BINARY',
  610.    'UNSIGNED',
  611.    'UNSIGNED ZEROFILL'
  612. );
  613.  
  614. // Available functions
  615. if ($cfg['ShowFunctionFields']) {
  616.     $cfg['Functions'] = array(
  617.        'ASCII',
  618.        'CHAR',
  619.        'SOUNDEX',
  620.        'LCASE',
  621.        'UCASE',
  622.        'NOW',
  623.        'PASSWORD',
  624.        'MD5',
  625.        'ENCRYPT',
  626.        'RAND',
  627.        'LAST_INSERT_ID',
  628.        'COUNT',
  629.        'AVG',
  630.        'SUM',
  631.        'CURDATE',
  632.        'CURTIME',
  633.        'FROM_DAYS',
  634.        'FROM_UNIXTIME',
  635.        'PERIOD_ADD',
  636.        'PERIOD_DIFF',
  637.        'TO_DAYS',
  638.        'UNIX_TIMESTAMP',
  639.        'USER',
  640.        'WEEKDAY',
  641.        'CONCAT'
  642.     );
  643.     
  644.     // Which column types will be mapped to which Group?
  645.     $cfg['RestrictColumnTypes'] = array(
  646.        'VARCHAR'      => 'FUNC_CHAR',
  647.        'TINYINT'      => 'FUNC_NUMBER',
  648.        'TEXT'         => 'FUNC_CHAR',
  649.        'DATE'         => 'FUNC_DATE',
  650.        'SMALLINT'     => 'FUNC_NUMBER',
  651.        'MEDIUMINT'    => 'FUNC_NUMBER',
  652.        'INT'          => 'FUNC_NUMBER',
  653.        'BIGINT'       => 'FUNC_NUMBER',
  654.        'FLOAT'        => 'FUNC_NUMBER',
  655.        'DOUBLE'       => 'FUNC_NUMBER',
  656.        'DECIMAL'      => 'FUNC_NUMBER',
  657.        'DATETIME'     => 'FUNC_DATE',
  658.        'TIMESTAMP'    => 'FUNC_DATE',
  659.        'TIME'         => 'FUNC_DATE',
  660.        'YEAR'         => 'FUNC_DATE',
  661.        'CHAR'         => 'FUNC_CHAR',
  662.        'TINYBLOB'     => 'FUNC_CHAR',
  663.        'TINYTEXT'     => 'FUNC_CHAR',
  664.        'BLOB'         => 'FUNC_CHAR',
  665.        'MEDIUMBLOB'   => 'FUNC_CHAR',
  666.        'MEDIUMTEXT'   => 'FUNC_CHAR',
  667.        'LONGBLOB'     => 'FUNC_CHAR',
  668.        'LONGTEXT'     => 'FUNC_CHAR',
  669.        'ENUM'         => '',
  670.        'SET'          => ''
  671.     );
  672.  
  673.     // Map above defined groups to any function
  674.     $cfg['RestrictFunctions'] = array(
  675.         'FUNC_CHAR'   => array(
  676.             'ASCII',
  677.             'CHAR',
  678.             'SOUNDEX',
  679.             'LCASE',
  680.             'UCASE',
  681.             'PASSWORD',
  682.             'MD5',
  683.             'ENCRYPT',
  684.             'LAST_INSERT_ID',
  685.             'USER',
  686.             'CONCAT'
  687.         ),
  688.  
  689.         'FUNC_DATE'   => array(
  690.             'NOW',
  691.             'CURDATE',
  692.             'CURTIME',
  693.             'FROM_DAYS',
  694.             'FROM_UNIXTIME',
  695.             'PERIOD_ADD',
  696.             'PERIOD_DIFF',
  697.             'TO_DAYS',
  698.             'UNIX_TIMESTAMP',
  699.             'WEEKDAY'
  700.         ),
  701.  
  702.         'FUNC_NUMBER' => array(
  703.             'ASCII',
  704.             'CHAR',
  705.             'MD5',
  706.             'ENCRYPT',
  707.             'RAND',
  708.             'LAST_INSERT_ID',
  709.             'COUNT',
  710.             'AVG',
  711.             'SUM'
  712.         )
  713.     );
  714.     
  715. } // end if
  716.  
  717.  
  718. /**
  719.  * Unset magic_quotes_runtime - do not change!
  720.  */
  721. set_magic_quotes_runtime(0);
  722.  
  723. /**
  724.  * File Revision - do not change either!
  725.  */
  726. $cfg['FileRevision'] = '$Revision: 1.198 $';
  727. ?>
  728.